/**
 * Description:
 * Class Name:A1
 * Date:2022/3/22 15:34
 *
 * @author LTisme
 * @version JAVA17
 */
package 疯狂Java讲义.第9章_泛型._9_2_深入泛型._9_2_2_从泛型类派生子类;

import 疯狂Java讲义.第9章_泛型._9_2_深入泛型._9_2_1_定义泛型接口_类.Apple;

public class A1 extends Apple<String> {
    // 正确重写了父类的方法，返回值
    // 与父类Apple<String>的返回值完全相同
    public String getInfo(){
        return "子类" + super.getInfo();
    }

    public static void main(String[] args) {
        System.out.println(new A1().getInfo());
    }
}
